/**
 * @file skoll.actions.info.tagsof.js
 * @author Alejandro Dario Simi
 * @date $Date: 2014-05-04 01:33:52 +0000 (Sun, 04 May 2014) $
 *
 * $Id: skoll.actions.info.tagsof.js 111 2014-05-04 01:33:52Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/trunk/skins/Skoll/js/skoll.actions.info.tagsof.js $
 */

Skoll.actions.info.tagsof = {
	//
	// Protected properties.
	_triggerEditTagsEnabled: false,
	//
	// Public methods
	enableTriggerEditTags: function() {
		Skoll.actions.info.tagsof._triggerEditTagsEnabled = true;
	},
	triggerEditTags: function(what, uriWhat, id, name, box) {
		if (Skoll.actions.info.tagsof._triggerEditTagsEnabled) {
			Skoll.tools.ModalWindow.addCloseListener(function() {
				$(box).wcGetDelayedReload("&resetcache");
				Skoll.tools.ShortCuts.enable();
			});
			Skoll.tools.ModalWindow.openModal("?action=info:edittagsof&group=" + GROUP_ID + "&" + uriWhat + "=" + id + Skoll.tools.extraUrlParams());
			Skoll.tools.ModalWindow.modal({
				title: what + ": " + name
			});
		}
	}
}